﻿using System;
using System.ComponentModel.Composition;

namespace NDBGen.Plugins
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public sealed class DatabaseScriptGeneratorAttribute : ExportAttribute
    {
        public DatabaseScriptGeneratorAttribute(String configurationName)
            : base(typeof(IDatabaseScriptFileGenerator))
        {
            this.ConfigurationName = configurationName;
        }

        public String ConfigurationName { get; private set; }
    }
}